package com.smartinput.auth.application.dto

import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

data class RegisterRequest(
    @field:NotBlank(message = "用户名不能为空")
    @field:Size(min = 3, max = 20, message = "用户名长度必须在3-20个字符之间")
    val userName: String,
    
    @field:NotBlank(message = "密码不能为空")
    @field:Size(min = 6, max = 20, message = "密码长度必须在6-20个字符之间")
    val password: String
)

data class LoginRequest(
    @field:NotBlank(message = "用户名不能为空")
    val userName: String,
    
    @field:NotBlank(message = "密码不能为空")
    val password: String
)

data class RegisterResponse(
    val userId: String,
    val userName: String,
    val token: String
)

data class LoginResponse(
    val userId: String,
    val userName: String,
    val token: String
) 